Repository navigation
test: replace no-op and duplicate tests with checks that assert - #44
Conversation
Five build tests called @nuxt/test-utils setup() inside it(), which only registers hooks, so they never built anything. Build validation does not see NUXT_* overrides, and zod-native turned build validation off, so those cases had no contract left. The Nuxt build-validation success path stays covered by cloudflare-auto-import. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for GitHub merge request 01038e87-1415-4b52-8d8c-07bb4e8de6e7. Ready; no actionable findings in the diff, Pullfrog review, or Codex review. All supplied checks pass. Locally, git diff --check, Node syntax checks for eight changed files, and helper/skill smoke checks passed. Vitest, lint, and typecheck were unavailable because the host rejected unchanged minimumReleaseAgeExcludePrune configuration; hosted CI covers them. No repair commit was needed. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes across the test audit, including removed fixtures and dependencies, consolidated validation coverage, the ArkType callable-schema test, shared server readiness helper, and narrowed well-known skill assertion.
- No-op build tests removed — late
@nuxt/test-utilssetup calls and tautological assertions are replaced by directnuxiexecution where setup behavior still matters. - Validation coverage consolidated — Zod and Valibot JSON Schema outputs are checked against their drafts with both valid and invalid configs, while transformation and coercion behavior remains covered end to end.
- ArkType coverage focused — callable Standard Schema compatibility is exercised directly through
validateRuntimeConfigwithout maintaining a redundant Nuxt fixture. - Test infrastructure simplified — duplicated server polling moved to one helper, unused fixtures and
@nuxt/test-utilswere removed, and compatibility skill content equality remains asserted.
Verification passed: 19 targeted changed/related tests, pnpm typecheck, and ESLint on the changed test files.
gpt-5.6-sol | 𝕏

Test audit following OpenClaw's
test-auditrules: each test should guard a behavior that a credible regression would break, and no other test should already cover it.Removed or replaced
mainwere no-ops (0ms each). They calledsetup()from@nuxt/test-utilsinsideit(), which only registersbeforeAllhooks, so nothing was built andexpect(true).toBe(true)always passed.env-var-validation: build validation does not seeNUXT_*overrides from the shell or.env(checked by building with aminLength(1)schema). The test only "passed" because Valibot'sstring()accepts''. Deleted.zod-native:validateAtRuntime: trueturns build validation off, and the build repeatsruntime-invalid. Deleted.validation-success(Valibot): the Nuxt build-validation success path is already covered bycloudflare-auto-import. Deleted.arktype: replaced by a unit test ofvalidateRuntimeConfigwith a callable ArkType schema.no-config: now runsnuxi prepare, which is enough to prove the module sets up without a schema.valibot-runtimefixture: no test used it.coercionSchemawere dropped; the runtime e2e tests cover that behavior.server-typingno longer runs a redundantsetup()beforenuxi prepare.json-schema.test.ts: dropped "Valibot has no native JSON Schema". It asserted a third-party library detail; the Valibot fallback output test stays.agent-context.test.ts→well-known-skill.test.ts: only the check that the compatibilitySKILL.mdmatches the canonical one is kept. The copiedpackage.jsonURLs andindex.jsonliteral are gone.onError: 'ignore'test. Moved the duplicatedwaitForResponsehelper totest/utils/server.ts. Dropped the now-unused@nuxt/test-utils.Result
pnpm test(warm, local)The runtime stays about the same, but every remaining test now asserts something.
pnpm test,pnpm typecheckandeslint testpass locally.🤖 Generated with Claude Code